<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>用户排名 - {{ modshow }}</title>
    {% include "../header.html" %}
</head>

<body>
    {% include "../nav.html" %}
    <div class="row" style="margin: 3% 8% 5% 8%">
        <div class="col-md-8">
            <div class="card">
                <div class="card-body">
                    {% if users_list %}
                    <h4>用户排名 - {{ modshow }}</h4>
                    <table class="table table-hover">
                        <tr>
                            <th>ID</th>
                            <th>用户名</th>
                            <th>积分</th>
                            <th>壕币</th>
                        </tr>
                        {% for user in users_list %}
                        <tr>
                            <td>{{ user.id }}</td>
                            <td><a href="{% url 'vt1:userInfo' user.user_id %}">{{ user.user_id }}</a></td>
                            <td>{{ user.score }}</td>
                            <td>{{ user.hb }}</td>
                        </tr>
                        {% endfor %}
                    </table>
                    {% else %}
                    <p>啊哈，一个用户也没有</p>
                    {% endif %}
                </div>
            </div>
        </div>
    </div>
    {% include "../footer.html" %}
</body>

</html>